package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Jialin
 * @create 2023-06-30 9:54
 */
public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

    List<Dish> listByCategoryIdAndName(Long categoryId, String name);
}
